class Peer
{

	private String ip;
	private int port;
	
	public Peer(String str)
	{
		String tab[] = str.split(":");
		this.ip = tab[0];
		this.port = Integer.parseInt(tab[1]);
	}
	
	
	public String getIp()
	{
		return this.ip;
	}
	
	
	public int getPort()
	{
		return this.port;
	} 
	
}
